<div class="file">
	<div class="file-icon">
		<?php echo $data->getIcon(); ?>
	</div>
	<div class="file-meta">
		<div class="file-title">
			名称：<?php echo CHtml::encode($data->name); ?>
			<strong><?php echo strtoupper($data->getExt()); ?></strong>
			<br />
			大小：<?php echo Yii::app()->format->size($data->size); ?>
		</div>
		<div class="file-datetime">
			时间：<?php echo Yii::app()->format->datetime($data->create_time); ?>
		</div>
		<?php if ($data->isImage()) : ?>
			<div class="file-sizes">
				尺寸：
				<?php foreach ($data->getSizes() as $name => $size) {
					echo '<label>' . CHtml::radioButton('size', false, array('value'=>$size['url'], 'id'=>'size_' . $data->id . '_' . $name));
					echo $size['width'] . '&times;' . $size['height'];
					echo '</label>';
				}
				?>
			</div>
		<?php endif; ?>
	</div>
	<div class="file-select">
		<?php echo CHtml::link("选择", "#", array("class"=>"btn post-select", "data-url"=>$data->getUrl())); ?>
	</div>
</div>
